#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
              //A+B
int main()
{
	int a, b, c=0;
	int arr[100]={0}, i = 0;
	while ((scanf("%d %d", &a, &b))!= EOF)
	{
		arr[i] = a + b;
		if (arr[i] == 0) {
			break;
		}
		i++;
		
	}
	for (int j = 0; j < i; j++)
	{
		printf("%d\n", arr[j]);
	}
	return 0;
}